#※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※
# File Name: invoke.sh
# Author: GID5564
# Description: shell对python函数的调用
# Created Time: 05/10/24-08:53:09
#※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※
#! /usr/bin/env bash

export BOOT_CALL=${BASH_SOURCE[0]:-$0}
function __invoke_init__() {
    export CALL_BASE_PATH=$(cd "$(dirname "${BOOT_CALL}")" &>/dev/null && pwd -P)
    #python函数库地址目录
    export PY_FUNCTION_PATH="$(dirname $CALL_BASE_PATH)/pylib/exa"
}

#图片处理
function invoke_image(){
    py_call "image_handler.py" "$@"
}

#wb访问
function invoke_web(){
    py_call "local_server.py" "$@"
}

#邮件发送
function invoke_mail(){
    py_call "send_email.py" "$@"
}



























__invoke_init__